<?php

namespace app\admin\validate;

use think\Validate;

/**
 * Created by PhpStorm.
 * User: niuniu
 * Date: 2016/8/17
 * Time: 10:49
 */
class NoticeValidate extends Validate
{
    protected $rule = [
        'n_content' => 'require',
        'n_type' => 'number'
    ];
    protected $message = [
        'n_title.require' => '请填写公告名称',
        'n_content.require' => '请填写公告内容',
        'n_type.number' => '请填写数字'
    ];
}